package com.yqg.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * record_operate 实体类
 *
 * @author zxf
 * @since 2025-09-16
 */
@Getter
@Setter
@TableName("record_operate")
@ApiModel(value = "RecordOperate对象", description = "")
public class RecordOperate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户名")
    private Long userId;

    @ApiModelProperty("操作类型")
    private String operateType;

    @ApiModelProperty("操作内容")
    private String content;

    private String params;

    @ApiModelProperty("用户IP")
    private String userIp;

    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;

    private Integer isDelete;

    @ApiModelProperty("账号")
    @TableField(exist = false)
    private String account;

    @ApiModelProperty("用户名")
    @TableField(exist = false)
    private String username;
}
